'use strict';

function collect_last_element(collection) {
   let result= collection.pop()
 return result;
}

module.exports = collect_last_element;
collect_last_element([1, 2, 3, 4, 5]);
